package java_DesignPattern.SixPrinciple.DependencyInversionPrinciple.My1;

public class TestMy1 {
    public static void main(String[] args) {
        //创建电脑对象
        Computer computer = new Computer();
        //设置电脑组件
        computer.set(new IntelCPU());
        computer.set(new KingstonMemory());
        computer.set(new XJHardDisk());

        //运行电脑
        computer.run();
    }
}
